Querying project information

Query project information according to the list of projects

Request format

GET pangu/v1/projects HTTP/1.1

Request parameters

Request Query parameter

Parameter nameTypeMandatory or NotSampleDescription
pageintNo1Paging parameter. The default value is 1
sizeintNo10Page size. The default value is 10 and the maximum value is 500
namestringNo"iknjdf"Item Name

Response parameters

Response Body parameter

Parameter nameTypeSampleDescription
request_idstring"ddddd"request id
dataArray[Object]["ddd","ddd]Query result
totalint64100Total number of devices

data

An array of response results

Parameter nameTypeDescription
idstringProject ID
project_namestringSystem name
project_hoststringModbus host address
project_portintModbus address
project_modelstringPV mode, 1: Fully fed to grid, 2: Excess fed to the grid
project_device_aliasstringProject station name
versionstringVersion No.
price_proxyint8Electricity price trusteeship. The default value is false
faultintFault
alarmintAlarm
statusintProject status Offline 0 Standby 1 Charging 2 Discharging 3 Shutdown 4 Fault 5 Pending Commissioning 8 Network Disconnected 9 Running 10
durationintInterval
create_timeint64Create time
update_bystringModified by
update_timeint64Modification time
whether_deleteint8Delete or not
currencystringCurrency
whether_accessibleint8Allow local access or not
local_project_idstringLocal project ID
whether_backupint8Display backup power: The default value is false, indicating no backup power. true indicates backup power
provinceintProvince/State

Querying project details

Query project information according to project ID

Request format

GET pangu/v1/projects/{project_id} HTTP/1.1

Request parameters

Request Path parameter

Parameter nameTypeMandatory or NotSampleDescription
project_idstringYesasdfdftdf34Project ID

Response parameters

Response Body parameter

Parameter nameTypeSampleDescription
request_idstring"ddddd"request id
dataObject{"income":0}Device information

Response result

Parameter nameTypeDescription
idstringProject ID
project_namestringSystem name
project_hoststringModbus host address
project_portintModbus address
project_modelstringPV mode, 1: Fully fed to grid, 2: Excess fed to the grid
project_device_aliasstringProject station name
versionstringVersion No.
price_proxyint8Electricity price trusteeship
faultintFault
alarmintAlarm
statusintProject status
durationintInterval
create_timeint64Create time
update_bystringModified by
update_timeint64Modification time
whether_deleteint8Delete or not
currencystringCurrency
whether_accessibleint8Allow local access or not
local_project_idstringLocal project ID
whether_backupint8Display backup power: The default value is 0. 0: No backup power, 1: Backup power
provinceintProvince/State

Request sample

GET /pangu/v1/projects/4f537620d37d40e19dd25be5ca6ad941 HTTP/1.1

/* request query */



/* response_body */
{
	"code": 200,
	"requestId": "f409d22e-229b-49dd-af00-26f39ed3c720",
	"data": {
		"id": "4f537620d37d40e19dd25be5ca6ad941",
		"project_name": "Test energy storage system (test 60)",
		"project_host": "192.168.1.1",
		"project_port": 80,
		"project_model": "2",
		"project_device_alias": "ems",
		"version": "1.3.1",
		"price_proxy": 1,
		"fault": 5,
		"alarm": 0,
		"status": 3,
		"duration": 8,
		"create_by": "",
		"create_time": 1676131200,
		"update_by": "",
		"update_time": 1702548127,
		"whether_delete": 0,
		"currency": "rmb",
		"whether_accessible": 1,
		"local_project_id": "4f537620d37d40e19dd25be5ca6ad941",
		"whether_backup": 1,
		"province": 16
	}
}

Last Updated: